﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WebApi.Service.Other
{
    /// <summary>
    /// 返回给前端的数据结果
    /// </summary>
    /// <typeparam name="TData"></typeparam>
    public class ResponseResult<TData> 
    {
        /// <summary>
        /// 状态：1成功，2客户端错误，3服务端错误
        /// </summary>
        public int State { set; get; }
        /// <summary>
        /// 传至前端的数据
        /// </summary>
        public TData Data { set; get; }
        /// <summary>
        /// 相关的处理信息
        /// </summary>
        public string Message { set; get; }
    }
}
